package main

import "fmt"

func main0701() {
	m := make(map[int]string)
	m[101] = "刘备"
	m[102] = "曹操"
	m[103] = "孙权"

	value, ok := m[105]
	if ok == true{
		fmt.Println(value)
	}else{
		fmt.Println("未找到数据")
	}
}

func main(){
	m := make(map[int]string)
	m[101] = "刘备"
	m[102] = "曹操"
	m[103] = "孙权"
	delete(m,102)
	fmt.Println(m)
}